package com.huaxin.device.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huaxin.device.dto.enums.DeviceZoneType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备区域
 **/
@Data
@TableName("device_zones")
@EqualsAndHashCode(callSuper = true)
public class DeviceZone extends BaseModel {

    /**
     * 区域名称
     */
    @TableField(value = "zone_name")
    @Schema(description = "区域名称", example = "厨房")
    private String zoneName;

    /**
     * 区域类型（如：电井、家庭房间、公共区域）
     */
    @TableField(value = "zone_type")
    @Schema(description = "区域类型", example = "家庭房间")
    private DeviceZoneType zoneType;

    /**
     * 描述
     */
    @TableField(value = "description")
    @Schema(description = "描述", example = "主厨房用电区域")
    private String description;

    /**
     * 组织家族ID
     */
    @TableField(value = "family_id")
    @Schema(description = "组织家族ID", example = "f3b2f8e1-4c5d-4e6f-8b2a-1c2d3e4f5a6b")
    private String familyId;
}